Release 10.1A: OpenEdge Data Management:
SQL Reference


SQLCursor.found

Checks whether a fetch operation returned a record.

Format

public boolean found ()

Returns

True if the previous call to fetch() returned a record, false otherwise.

Parameters

None

Throws

DhSQLException

Example

This code fragment illustrates the fetch, found, and getValue methods:

for (;;)
{
     cust_cursor.Fetch ();
     if (cust_cursor.Found ())
     {
          cust_cursor.getValue (1, cust_number);
          cust_cursor.getValue (2, cust_name) ;
     }
     else
          break;
} 


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095